package com.drugStorage.spring.ServiceImpl;

import java.util.List;

import com.drugStorage.domain.Department;
import com.drugStorage.hibernate.dao.DepartmentDao;
import com.drugStorage.spring.service.DepartmentService;

public class DepartmentServiceImpl implements DepartmentService {

	private DepartmentDao departmentDao;
	public void delDepartment(Department department) {
		departmentDao.delDepartment(department);
		
	}

	public Department getDepartment(int id) {
		return departmentDao.getDepartment(id);
	}

	public List<Department> getDepartments() {
		return departmentDao.getDepartments();
	}

	public void saveDepartment(Department department) {
		departmentDao.saveDepartment(department);
		
	}

	public void updateDepartment(Department department) {
		// TODO Auto-generated method stub
		
	}

}
